@import "../../../styles/variables.less";
@import "../../../styles/mixin.less";

.pay-result {
  position: relative;
  box-sizing: border-box;
  height: 100vh;
  width: 100%;
  padding: 10px 16px 0;
  background-color: @grap-bg;

  .card-box {
    position: relative;
    height: 470px;
    padding: 0 24px;
    overflow: hidden;
    background-color: @white;
    border-radius: 10px;

    .icon-box {
      position: absolute;
      top: -44px;
      right: -24px;
    }

    .header {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 40px;
      border-bottom: 0.5px dashed rgba(0, 0, 0, 0.12);

      .title-box {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        font-weight: 500;
        line-height: 24px;
        color: @primary-color;

        .title {
          margin-left: 4px;
        }
      }

      .money {
        display: flex;
        align-items: baseline;
        height: 44px;
        padding: 8px 0 16px;
        font-family: 'DIN_Medium';
        font-size: 44px;
        font-weight: 500;
        line-height: 44px;

        .unit {
          margin-right: 4px;
          font-size: 28px;
          font-weight: 500;
          line-height: 28px;
        }
      }
    }

    .detail {
      padding-top: 16px;

      .list-cell {
        display: flex;
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 20px;

        .label {
          width: 72px;
          color: @content-color;
        }

        .value {
          display: flex;
          flex: 1;
          align-items: center;
          color: @label-color;
          word-break: break-all;

          .poster {
            width: 16px;
            height: 16px;
            border-radius: 4px;
            object-fit: cover;
          }

          .name {
            margin-left: 6px;
          }
        }
      }
    }

    .footer {
      position: absolute;
      bottom: 24px;
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;
      width: 296px;
      height: 106px;
      margin-top: 60px;

      .seller-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-bottom: 20px;
      }

      .poster-info {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .poster {
          width: 36px;
          height: 36px;
          border-radius: 18px;
          object-fit: cover;
        }

        .name-box {
          flex: 1;
          margin: 0 16px 0 8px;

          .seller-name {
            font-size: 16px;
            font-weight: 500;
            line-height: 22px;
            color: @label-color;
          }

          .staff-name {
            font-size: 10px;
            line-height: 14px;
            color: @content-color;
          }
        }
      }

      .code-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: 88px;
        height: 106px;

        .code,
        .code-default {
          width: 88px;
          height: 88px;
          object-fit: cover;
        }

        .code-default {
          position: relative;
          display: flex;
          align-items: center;
          justify-content: center;
          background-color: @grap-bg;
          border-radius: 10px;

          .loading-animation {
            position: absolute;
            top: 32px;
            left: 32px;
            width: 24px;
            height: 24px;
            
          }
        }

        .info {
          margin-top: 4px;
          font-size: 10px;
          line-height: 14px;
          color: @content-color;
        }
      }
    }
  }

  .btn-box {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;

    .btn-primary {
      width: 184px;
      height: 40px;
      font-size: 17px;
      font-weight: 500;
      line-height: 40px;
      color: @white;
      background-color: @primary-color;
      border-radius: 8px;
    }
  }
}